]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Decouple syncing geometry from updating views
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 11:23:50 +0000 (13:23 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 11:41:54 +0000 (13:41 +0200)
This gives us more control over when the geometry is synced. We
will soon use that to keep the primary view at the work area
geometry while fading to the overview.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353

js/ui/workspacesView.js

index ea5156836bbb9c62ee4bfbdd6ff6d021e994005e..0096b872b80b8b62a9be11d315b6d95168d7af05 100644 (file)
@@ -555,6 +555,7 @@ class WorkspacesDisplay extends St.Widget {
                     animationType = AnimationType.ZOOM;
                 this._workspacesViews[i].animateToOverview(animationType);
             }
+            this._syncWorkspacesActualGeometry();
         }
 
         this._restackedNotifyId =
@@ -614,6 +615,7 @@ class WorkspacesDisplay extends St.Widget {
             return;
 
         this._updateWorkspacesViews();
+        this._syncWorkspacesActualGeometry();
     }
 
     _updateWorkspacesViews() {
@@ -633,9 +635,6 @@ class WorkspacesDisplay extends St.Widget {
             this._workspacesViews.push(view);
             Main.layoutManager.overviewGroup.add_actor(view);
         }
-
-        if (this._actualGeometry)
-            this._syncWorkspacesActualGeometry();
     }
 
     _getMonitorIndexForEvent(event) {